﻿using System;
using System.Collections.Generic;
using Infrastucture;

namespace TimeSplicerModule.DomainModels
{
    public class ApplicationRoleModel : DomainObject
    {
        private Guid _applicationRoleGuid;
        private string _name;
        private string _description;
        private int _hierarchy;
        private bool _isActive;
        private List<ApplicationRolePermissionModel> _permissions;


        public Guid ApplicationRoleGuid
        {
            get { return _applicationRoleGuid; }
            set { SetProperty(ref _applicationRoleGuid, value); }
        }
        public string Name
        {
            get { return _name; }
            set { SetProperty(ref _name, value); }
        }
        public string Description
        {
            get { return _description; }
            set { SetProperty(ref _description, value); }
        }
        public int Hierarchy
        {
            get { return _hierarchy; }
            set { SetProperty(ref _hierarchy, value); }
        }
        public bool IsActive
        {
            get { return _isActive; }
            set { SetProperty(ref _isActive, value); }
        }
        public List<ApplicationRolePermissionModel> Permissions
        {
            get { return _permissions; }
            set { SetProperty(ref _permissions, value); }
        }
    }
}
